<?PHP
  class NewFolderPage extends Editor{
    function __construct($page){
      $this->page = $page;
    }
  
    public function display(){
      $contentpath = Settings::getInstance()->get("root")."content/articles/".$_SESSION['dir']."/";
      if(isset($_POST['name'])){
        FileServer::createFolder($contentpath,$_POST['name']);
        ?>
        <script language="JavaScript"><!--
          window.location.href="home.html?dir=<?PHP echo $_SESSION['dir']."/".$_POST['name']; ?>";
        // --></script> 
        <?PHP
      }
      $template = new Template();
      $template->load("new_folder");
      $template->output();
    }

    function getHeader(){
    }
    
    public function getEditableCode(){
      return "<input name=\"save\" type=\"submit\" value=\"&Auml;ndern\" onclick=\"form.action='".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."' ; target='_self' ; return true\" />";
    }
    
    public function save($newPage,$oldPage){
    }

    public function displayBreadcrumb($separator,$class,$idpraefix){
      FolderBreadcrumb::display($this->page,$separator,$class,$idpraefix);
    }  
}
?>